<?php

namespace app\http\middleware;
class Login
{
    public function handle($request, \Closure $next)
    {
		
		if( !session( "admin.user_auth" ) ){
			$url = url('Login/index');
            echo '<script>top.window.location.href="'.$url.'"</script>';exit;
		}
		return $next( $request );
    }
}
